package com.jinke.api.modules.app.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum BalanceLogType {

    RECHARGE(0, "充值"),
    CONSUME(1, "下单"),
    REFUND(2, "退款"),
    EARNEST_RELEASE(3, "保证金释放"),

    BILLED(4, "账单补扣"),

    SUBSCRIBE(5, "订阅物流"),
    FIND_ZONE(6, "find zone")
    ;

    @EnumValue
    private final int value;
    private final String desc;

    BalanceLogType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    public int getValue() {
        return this.value;
    }

}